<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/common/taglib.jsp"%>
<%@ include file="/WEB-INF/common/header.jsp"%>

	<div class="layui-fluid">

		<form class="layui-form">
		  
		  <div class="layui-form-item">
		    <label class="layui-form-label">主键：</label>
		    <div class="layui-input-inline">
		      <div class="layui-form-mid layui-word-aux">${bean.id }</div>
		    </div>
		    
		    <label class="layui-form-label">模板标题：</label>
		    <div class="layui-input-inline">
		      <div class="layui-form-mid layui-word-aux">${bean.title }</div>
		    </div>
		  </div>
		  
		  <hr>
		  
		  <div class="layui-form-item">
		    <label class="layui-form-label">模板ID：</label>
		    <div class="layui-input-block">
		      <div class="layui-form-mid layui-word-aux">${bean.templateCode }</div>
		    </div>
		  </div>
		  
		  <hr>
		  
		  <div class="layui-form-item">
		    <label class="layui-form-label">类型：</label>
		    <div class="layui-input-inline">
		    	<div class="layui-form-mid layui-word-aux">
		      		${bean.type == 0 ? '公众号模板' : '小程序模板' }
		      	</div>
		    </div>
		    
		    <label class="layui-form-label">状态：</label>
		    <div class="layui-input-inline">
		      <div class="layui-form-mid layui-word-aux">
		   		${bean.status == 0 ? '启用' : '禁用' }
		  	  </div>
		    </div>
		  </div>
		  
		  <hr>
		  
		  <c:choose>
		  	<c:when test="${(bean.url == null || bean.url == '') && (bean.page == null || bean.page == '') }">
		  		<div class="layui-form-item">
				    <label class="layui-form-label">跳转逻辑：</label>
				    <div class="layui-input-block">
				      <div class="layui-form-mid layui-word-aux">不进行跳转</div>
				    </div>
				  </div>
				  <hr>
		  	</c:when>
		  	<c:otherwise>
		  		<c:choose>
		  			<c:when test="${bean.page != null && bean.page != ''  }">
		  				<div class="layui-form-item">
						    <label class="layui-form-label">跳转小程序</label>
						    <div class="layui-input-block">
						      <div class="layui-form-mid layui-word-aux">${bean.page }</div>
						    </div>
						</div>
						<hr>
		  			</c:when>
		  			<c:otherwise>
		  				<div class="layui-form-item">
							<label class="layui-form-label">跳转网页：</label>
						    <div class="layui-input-block">
						      <div class="layui-form-mid layui-word-aux">${bean.url }</div>
						    </div>
						</div>
						<hr>
		  			</c:otherwise>
		  		</c:choose>
		  	</c:otherwise>
		  </c:choose>
		  
		  <div class="layui-form-item layui-form-text">
		    <label class="layui-form-label">模板通道：</label>
		    <div class="layui-input-inline">
		      <div class="layui-form-mid layui-word-aux">${bean.appid }</div>
		    </div>
		    <div class="layui-input-inline">
		    	<select name="appid" class="fsSelect" isLoad="1" dict="wxConfigList0" addNull="1"></select>
		    </div>
		  </div>
		  
		  <hr>
		  
		  <div class="layui-form-item" style="text-align: center;">
	     	 <button type="button" class="layui-btn layui-btn-primary" function="close">关闭</button>
	   	  </div>
	  
		</form>
	</div>
<%@ include file="/WEB-INF/common/bottom.jsp"%>